home *** CD-ROM | disk | FTP | other *** search
-
-
- ; Photogenics Installer script. © Almathera 1994-7. All rights reserved.
-
- ; $VER: Photogenics_3.25_Installer_USA_Edition 3.025 (23.02.97)
-
-
-
- (set #GOINGIN
- (cat "\n\nWelcome to the Photogenics (TM) installation system\n\n\n"
- "Read the file READ.ME on distribution disk 3 for more "
- "information about Photogenics 3.25 that may have not made "
- "it into the printed manual."
- "\n\n\n Photogenics © 1994-7 Paul Nolan & Almathera Systems Ltd."
- " All Rights Reserved.")
- )
-
- (set #WAYS-TO-INSTALL
- (cat "Photogenics is a modular program - you don't need to"
- " install the entire package in order to use it. Most"
- " people can simply install the generic program - if"
- " you've extra graphics hardware or you'd like some more"
- " loader/saver formats, you can additionally install the"
- " 'Extra modules'.\n\n"
- "The ColourFonts are the ones as used in the 'Special text effects"
- " with Alpha channels' tutorial. They're 8-colour anti-aliased"
- " fonts, and use a ramped-up greyscale palette. Be warned that"
- " they're BIG (around 900K) to install, so make sure your hard"
- " drive has enough free space beforehand.\n\n"
- "The Tutorial graphics and examples are the images described"
- " in the manual during the tutorials, plus a cluster of other"
- " suitable material to feed Photogenics with. Please note that"
- " these pictures are copyrighted and are supplied for test"
- " purposes only - they are not for commercial use of any"
- " nature, unless specifically stated by their respective"
- " owners.")
- )
-
- (set #DOTHEPROGRAMFIRST
- (cat " You need to install the main Photogenics program"
- " before you can install the optional GIOs, colourfonts or tutorial"
- " images! ;->\n\n"
- " Make sure the checkbox for 'Main program and standard modules'"
- " is ticked when the main options menu appears on starting this"
- " installer utility. <You can install everything else at the same"
- " time, by selecting all checkboxes and hitting Proceed>")
- )
-
- (set #MAINPROG-HELP
- (cat "\nThe Photogenics package is extremely modular - effects, loaders and"
- " savers, brushes and image manipulators are all separate files"
- " which the main program calls as-and-when it needs to. This makes"
- " efficient use of memory.\n\n"
- "When installed, the main program sits at the top of its directory"
- " tree under which drawers containing the various external modules"
- " are positioned - these will be installed soon.")
- )
-
- (set #SCRATCH-HELP
- (cat "\nPhotogenics can sometimes require extra storage space for"
- " temporary files created by itself, especially for exporting"
- " data to other programs - these can be several megabytes in"
- " size, so unless you have a LOT of RAM <ie over 10 megs of"
- " FAST>, aim the assignment 'PGStemp:' at a fast hard disk"
- " directory with lots of free space.\n\n"
- "This directory you select on the previous page is used for"
- " 'PGStemp:' and the assignment gets added to S:User-StartUP")
- )
-
- (set #SUPPORT-HELP
- (cat "\n\n\n\nThis section installs the generic loader, saver, brush"
- " and effects modules which the Photogenics main program calls."
- " These all sit in their various subdirectories, so it's just"
- " a simple recursive copy with no version-check.")
- )
-
- (set #GENIXFONT-HELP
- (cat "\n\n\n\n\nInstalling Photogenics font into FONTS: - this is the internal"
- " font used by the program.")
- )
-
- (set #WHEREFONT-HELP
- (cat "\nThe Photogenics 'Text' GIO loader can use Amiga ColourFonts"
- " which tend to be BIG. These ones are over 900K, so you can"
- " install them away from the System"
- " disk <useful if you keep Colourfonts in a special drawer"
- " or you're running low on System space>. Keeping them in 'FONTS:'"
- " is simplest but unwieldy, putting them in another directory means"
- " an extra addition to S:User-StartUP. But it's more organised.\n\n"
- " Select 'FONTS:' to install to FONTS: or 'Elsewhere' to select your"
- " own directory.")
- )
-
- (set #FONTSTARTUP-HELP
- (cat "\nBecause you've not installed the ColourFonts in the standard SYS:Fonts"
- " directory <pointed at by the FONTS: assignment>, Photogenics won't be able"
- " to see them for use unless FONTS: has been extended to include your selected"
- " directory. The 'Assign' command under WorkBench 3.x has the ADD option which"
- " will extend FONTS: to cover multiple directories - ROM routines will follow"
- " the full AmigaDOS path, but DOpus and normal filerequesters can't do this.\n\n"
- "Best way to extend FONTS: is add to S:User-Startup.")
- )
-
- (set #USERSTARTUP-HELP
- (cat "\n\nPhotogenics needs an AmigaDOS assignment so it knows where"
- " to find all its program modules.\n\nThe assignment PHOTOGENICS: is best"
- " made on bootup - the standard way of doing this being an extra"
- " few lines in the file S:User-Startup.\n\nThis section of the"
- " install procedure will add these lines for you.")
- )
-
- (set #BIGBOX-HELP
- (cat "\nPhotogenics supports a variety of add-on third-party graphics"
- " hardware which you might appreciate - the list will expand in"
- " the future, on a\n\n"
- " 'when-we-can-get-hold-of-the-development-docs'\n\n"
- "basis. There's also a selection of lesser-known, more-obscure"
- " and way-bizarre GIO modules for a variety of hardware and"
- " software formats so select whatever you'd like to install"
- " from the list on the previous page, then hit 'Proceed'")
- )
-
- (set #WAY-COOL-NEW-STUFF
- (cat "\nIn the 2.25 update, there's various new features, tweaks, freaks"
- " and updates to some of the paintmodes and GIOs - we're about to"
- " delete one of the obsolete files. This process will take"
- " approximately 4 of your Earth 'minutes'. Thank you.")
- )
-
-
- (procedure scrub
- (
- (if (> (exists (tackon BINARIES OLDKACK) ) 0 )
- (
- (delete (tackon BINARIES OLDKACK)
- (prompt ("\n\nDeleting redundant program code:\n\n%s\n\n" (tackon BINARIES OLDKACK) ))
- (help #WAY-COOL-NEW-STUFF)
- (confirm)
- )
- )
- )
- )
- )
-
- (procedure dead_beavers
- (
- (copyfiles
- (prompt HEREITCOMES)
- (help @copyfiles-help)
- (source (tackon "Photogenics_2:" FINALDIR))
- (dest (tackon GRAPHICS FINALDIR))
- (pattern "#?.JPG")
- (confirm)
- )
- )
- )
-
- (procedure do-the-startup
- (
- (if
- (askbool
- (prompt
- (cat "\n\n\nDo you want the installer to automatically make the required changes for "
- SECTION-NAME
- " to S:User-StartUP?\n\nIf you don't, it will create a script file containing "
- " commands which you should add to your S:User-StartUP script.")
- )
- (help STARTUP-HELP))
- (startup SECTION-NAME
- (prompt
- (cat "\n\n\nNow adding the " SECTION-NAME
- " lines to S:User-StartUP.\n\n"
- "These are:\n\n" ADD-TO-USER-STARTUP)
- )
- (help STARTUP-HELP)
- (command ADD-TO-USER-STARTUP))
- (
- (textfile
- (dest (tackon OUTPUT STARTUP-FILE))
- (append ADD-TO-USER-STARTUP))
-
- (message
- "\n\n\n\nThe file:\n\n"
- (tackon OUTPUT STARTUP-FILE)
- "\n\nhas been generated, which you must add to"
- " S:User-StartUP manually.")
- )
- )
- )
- )
-
-
- (procedure hunt_the_wiener
- (
- (set OLDINSTALL (getassign "photogenics"))
-
- (if (AND (= OLDINSTALL "") (< (IN WHATTOINSTALL 0) 1 ) )
- (abort #DOTHEPROGRAMFIRST)
- (set RETURNCODE OLDINSTALL)
- )
- )
- )
-
-
- (procedure corebinaries
- (
-
- (set NEWCODE (+ NEWCODE 2))
-
- (if (= (getassign "WORK" "v") "" )
- (set NORMAL @default-dest)
- (set NORMAL "WORK:")
- )
-
- (set CHIP (database "graphics-mem") )
- (set TOTAL (database "total-mem") )
-
- (if ( <= (- TOTAL CHIP) 0 )
- (
- (message
- "\n\nWarning:\n\nInstalling Photogenics on a machine"
- " with a hard drive but no extra FAST memory is *NOT*"
- " recommended due to the extra memory overheads of the hard"
- " drive.\n\n"
- " Adding extra FAST RAM to your machine will improve"
- " system performance by approximately 2 times, and"
- " allow you to work with much larger images in"
- " Photogenics."
- )
- )
- )
-
- (set BINARIES
- (askdir
- (prompt "Where do you wish to install Photogenics?\n(A drawer named 'Photogenics' will be created in which the program will reside)")
- (help #MAINPROG-HELP)
- (default NORMAL)
- (disk)
- )
- )
-
- (set BINARIES (tackon BINARIES "Photogenics"))
- (set @default-dest BINARIES)
-
- (set PGX-SCRATCH
- (askdir
- (prompt "Where should Photogenics keep its temporary files?\n(Unless you have LARGE amounts of memory this should be in a hard disk directory)")
- (help #SCRATCH-HELP)
- (default (tackon @default-dest "Temporary"))
- (newpath)
- (disk)
- )
- )
-
- (set ADD-TO-USER-STARTUP (cat "assign photogenics: \"" BINARIES "\"\nassign PGStemp: \"" PGX-SCRATCH "\"\n"))
-
- (copyfiles
- (prompt "Okay, here it comes...")
- (help @copyfiles-help)
- (source "Photogenics_3:c/Deplode")
- (dest "ram:")
- )
-
- (askdisk
- (prompt "Please insert Photogenics disk 1 in any drive")
- (dest "Photogenics_1")
- (help @askdisk-help)
- )
-
- ; Copying the main bit...
-
- (if ( < (exists BINARIES (noreq) ) 2)
- (makedir BINARIES
- (prompt "Creating Photogenics directory...")
- (help @makedir-help)
- (infos)
- )
- )
-
- (if ( < (exists PGX-SCRATCH (noreq) ) 2)
- (makedir PGX-SCRATCH
- (prompt ("Creating the directory \n%s\n for Photogenics temporary files..." PGX-SCRATCH))
- (help @makedir-help)
- )
- )
-
- (run ("ram:Deplode Photogenics_1:Photogenics \"%s\"" (tackon BINARIES "Photogenics") )
- (prompt "Installing Photogenics release 3.25 main program...")
- (help #MAINPROG-HELP)
- (confirm)
- )
-
- (delete "ram:Deplode")
-
- (copyfiles
- (prompt "Installing Photogenics icon...")
- (help #MAINPROG-HELP)
- (source "Photogenics_1:Photogenics.icon")
- (dest BINARIES)
- (newname "Photogenics.info")
- )
-
- (tooltype
- (prompt "Setting up icon position")
- (help #MAINPROG-HELP)
- (dest (tackon BINARIES "Photogenics.info"))
- (noposition)
- (setstack 25000)
- )
-
- (if ( < (exists "envarc:Photogenics" (noreq) ) 2)
- (
- (makedir "envarc:Photogenics"
- (prompt "Creating Photogenics directory in ENVARC:...")
- (help @makedir-help)
- )
-
- (makedir "env:Photogenics"
- (prompt "Creating Photogenics directory in ENV:...")
- (help @makedir-help)
- )
- )
- )
-
-
- (set OLDKACK "Data/Paintmodes/Flip-X")
- (scrub)
-
- (set OLDKACK "Data/Paintmodes/Flip-Y")
- (scrub)
-
- (set OLDKACK "Data/Paintmodes/AddDust")
- (scrub)
-
- (set OLDKACK "Data/Paintmodes/NegBright")
- (scrub)
-
- (set OLDKACK "Data/Paintmodes/LimitMax")
- (scrub)
-
- (set OLDKACK "Data/Paintmodes/LimitMin")
- (scrub)
-
- (set OLDKACK "Data/Paintmodes/HeavyBlur")
- (scrub)
-
- (set OLDKACK "Data/GIO/WhiteNoise.gio")
- (scrub)
-
- (set OLDKACK "Data/GIO/ColourNoise.gio")
- (scrub)
-
- (set OLDKACK "Data/GIO/Ham8.gio")
- (scrub)
-
- (copyfiles
- (prompt "Installing Photogenics data files...")
- (help #SUPPORT-HELP)
- (source "Photogenics_1:Data/")
- (dest (tackon BINARIES "Data") )
- (all)
- (confirm)
- )
-
- (copyfiles
- (prompt "Installing Photogenics font in FONTS:")
- (help #GENIXFONT-HELP)
- (source "Photogenics_1:Fonts/")
- (dest "fonts:")
- (pattern "Photogenics#?")
- (fonts)
- (confirm)
- )
-
- (copylib
- (prompt "Checking and updating ASL.library, if needed...")
- (help @copylib-help)
- (source "Photogenics_1:libs/asl.library")
- (dest "libs:")
- (confirm)
- )
-
- (copylib
- (prompt "Checking and updating SetPatch. Photogenics *requires* v40.16")
- (help @copylib-help)
- (source "Photogenics_1:c/SetPatch")
- (dest "c:")
- (confirm)
- )
-
- (run "Photogenics_1:c/SetPatch QUIET")
-
- (askdisk
- (prompt "Please insert Photogenics disk 3 in any drive")
- (dest "Photogenics_3")
- (help @askdisk-help)
- )
-
- (copyfiles
- (prompt "Installing more Photogenics data files...")
- (help #SUPPORT-HELP)
- (source "Photogenics_3:ExtraData/")
- (dest (tackon BINARIES "Data") )
- (all)
- (confirm)
- )
-
- (copyfiles
- (prompt "Copying manual additions across")
- (help @copyfiles-help)
- (source "Photogenics_3:READ.ME")
- (dest BINARIES)
- (infos)
- )
-
- (tooltype
- (dest ("%s/READ.ME" BINARIES))
- (setdefaulttool "More")
- (setstack 10000)
- (noposition)
- )
-
-
- (set SECTION-NAME "Photogenics")
- (set STARTUP-HELP #USERSTARTUP-HELP)
- (set OUTPUT BINARIES)
- (set STARTUP-FILE "add-to-user-startup")
- (do-the-startup)
-
- (makeassign "photogenics" BINARIES)
- (makeassign "PGStemp" PGX-SCRATCH)
-
- )
-
- )
-
- (procedure extrastuff
- (
- (hunt_the_wiener)
- (set BINARIES RETURNCODE)
- (set @default-dest BINARIES)
- (makeassign "pgs_temp" BINARIES)
-
- (set NEWCODE (+ NEWCODE 1))
-
- (set BIGBOXGIO
- (askoptions
- (prompt "Please select which extra loaders/savers you require:")
- (help #BIGBOX-HELP)
- (choices
- "CyBERgraphics 3d /64 3D"
- "EGS"
- "Harlequin"
- "Impulse"
- "OpalVision"
- "Picasso II / II+"
- "Preferences Printer"
- "QRT"
- "QuadAnim"
- "Raw"
- "Retina"
- "Sculpt"
- "V-Lab"
- "Prograb 24"
- "Studio 2"
- "TIFF"
- "VideoToaster" ; 17
- )
- )
- )
-
- (askdisk
- (prompt "Please insert Photogenics disk 3 in any drive")
- (dest "Photogenics_3")
- (help @askdisk-help)
- )
-
- ; loop for each one...
-
- (set LOOP-FLAG -1)
-
- (while (< LOOP-FLAG 17 )
- (
-
- (set LOOP-FLAG (+ 1 LOOP-FLAG ))
-
- (if (IN BIGBOXGIO LOOP-FLAG)
- (
- (set FILE-TO-COPY
- (select LOOP-FLAG
- "CyBERgraphics.gio"
- "EGS.gio"
- "Harlequin.gio"
- "Impulse.gio"
- "OpalVision.gio"
- "Picasso-II.gio"
- "PrefsPrinter.gio"
- "QRT.gio"
- "QuadAnim.gio"
- "Raw.gio"
- "Retina.gio"
- "Sculpt.gio"
- "VLab.gio"
- "ProGrab24RT.gio"
- "StudioII-Print.gio"
- "TIFF.gio"
- "Toaster.lha"
- )
- )
-
- (set FILE-TO-COPY (tackon "Photogenics_3:ExtraGIOs" FILE-TO-COPY))
-
- (if (= 16 LOOP-FLAG)
- (
- (working "Decompressing and installing Video Toaster plug-in...")
-
- (set BURNT (run "Photogenics_3:c/lhex -qfw=pgs_temp:Data/GIO x Photogenics_3:Toaster.lha"))
- (if ( <> BURNT 0)
- (message
- "\n\n\n\n"
- "Error decompressing the Video Toaster plug-in archive"
- " into your selected directory.\n"
- "Make sure your hard disk, has enough free space in it, "
- " and if the files to be copied already exist, the existing"
- " files aren't protected from deletion or overwriting.")
- )
- )
-
- (copyfiles
- (prompt ("Copying loader %s to GIO drawer..." FILE-TO-COPY) )
- (help @copylib-help)
- (source FILE-TO-COPY)
- (dest "pgs_temp:Data/GIO")
- )
-
- )
-
- )
-
- )
-
- )
- )
-
- )
- )
-
- (procedure colourfonts
- (
- (hunt_the_wiener)
- (set WHEREFONT RETURNCODE)
-
- (set FONTCHOICE
- (askchoice
- (prompt "Where do you wish to install the ColourFonts?")
- (help #WHEREFONT-HELP)
- (choices "FONTS:" "Elsewhere")
- )
- )
-
- (if (= 1 FONTCHOICE)
- (
-
- (set WHEREFONT
- (askdir
- (prompt "Okay, choose a directory.\n")
- (help @askdir-help)
- (default @default-dest)
- (newpath)
- (disk)
- )
- )
-
- (if ( < (exists WHEREFONT (noreq) ) 2)
- (makedir WHEREFONT
- (prompt ("Creating the directory '%s' for the ColourFonts...") WHEREFONT)
- (help @makedir-help)
- (confirm)
- )
- )
-
- (set ADD-TO-USER-STARTUP (cat "assign fonts: \"" WHEREFONT "\" ADD\n"))
- )
-
- (
- (set WHEREFONT "fonts:")
- )
- )
-
- (set @default-dest RETURNCODE)
- (makeassign "pgs_temp" WHEREFONT)
-
- (askdisk
- (prompt "Please insert Photogenics disk 3 in any drive")
- (dest "Photogenics_3")
- (help @askdisk-help)
- )
-
- (working "Decompressing and installing ColourFonts..." " \n\n\n\n\n" "(This is a large job, so please bear with us...)")
-
- (set FONTERROR (run "Photogenics_3:c/lhex -qfw=pgs_temp: x Photogenics_3:ColourFonts.lha"))
- (if ( <> FONTERROR 0)
- (message
- "\n\n\n\n"
- "Error decompressing the colourfonts into your selected directory.\n"
- "Make sure your hard disk, has enough free space in it, "
- " and if the files to be copied already exist, the existing"
- " files aren't protected from deletion or overwriting.")
- )
-
- (if (= 1 FONTCHOICE)
- (
- (run "c:assign fonts: pgs_temp: add")
- (set SECTION-NAME "Photogenics ColourFonts")
- (set STARTUP-HELP #FONTSTARTUP-HELP)
- (set OUTPUT @default-dest)
- (set STARTUP-FILE "add-fonts-to-user-startup")
- (do-the-startup)
- )
- )
- )
- )
-
- (procedure tutorials
- (
- (hunt_the_wiener)
- (set NORMAL RETURNCODE)
- (set GRAPHICS-DIR "Graphics")
-
- (set GRAPHICS
- (askdir
- (prompt ("Where do you wish to install the tutorial and\n example graphics?\n(A drawer named '%s' will be created for them)" GRAPHICS-DIR ) )
- (help @askdir-help)
- (default NORMAL)
- (newpath)
- (disk)
- )
- )
-
- (set GRAPHICS (tackon GRAPHICS GRAPHICS-DIR))
-
- (if ( < (exists GRAPHICS (noreq) ) 2)
- (makedir GRAPHICS
- (prompt "Creating a directory for the graphics...")
- (help @makedir-help)
- (confirm)
- (infos)
- )
- )
-
- (set @default-dest RETURNCODE)
-
- (askdisk
- (prompt "Please insert Photogenics disk 2 in any drive")
- (dest "Photogenics_2")
- (help @askdisk-help)
- )
-
- (set HEREITCOMES "Installing Photogenics examples/tutorials...\n\nAlpha channel clipboards")
- (set FINALDIR "AlphaClips")
- (dead_beavers)
-
- (set HEREITCOMES "Still Installing Photogenics examples/tutorials...\n\nTexures")
- (set FINALDIR "Textures")
- (dead_beavers)
-
- (set HEREITCOMES "STILL Installing Photogenics examples/tutorials...\n\nTutorial images")
- (set FINALDIR "TutorialImages")
- (dead_beavers)
-
- (set HEREITCOMES "And yet more...\n\nDisplace Maps")
- (set FINALDIR "DisplaceMaps")
- (dead_beavers)
-
- (copyfiles
- (prompt "Copying copyright information across")
- (help @copyfiles-help)
- (source "Photogenics_2:Example Images NOTICE")
- (dest GRAPHICS)
- (infos)
- )
-
- (tooltype
- (dest ("%s/Example Images NOTICE" GRAPHICS))
- (setdefaulttool "More")
- (setstack 10000)
- (noposition)
- )
-
- )
- )
-
- (if (< (/ (getversion) 65536) 39)
- ((abort "\n You must be using at least KickStart 3.0 (V39) to install or run Photogenics!"))
- )
-
- (message #GOINGIN)
-
- (set NEWCODE 0)
-
- (set WHATTOINSTALL
- (askoptions
- (prompt "Which parts of Photogenics do you wish to install?\n(Use the check-boxes to select, then hit Proceed)")
- (help #WAYS-TO-INSTALL)
- (choices "Main program & standard modules (940K)"
- "Extra modules (685K)"
- "Extra ColourFonts (1400K)"
- "Tutorial & example pictures (460K)")
- (default 1)
- )
- )
-
- (if (= WHATTOINSTALL 0)
- (exit (quiet))
- )
-
- (if (= (IN WHATTOINSTALL 0) 1)
- (corebinaries)
- )
-
- (if (= (IN WHATTOINSTALL 1) 2)
- (extrastuff)
- )
-
- (if (= (IN WHATTOINSTALL 2) 4)
- (colourfonts)
- )
-
- (if (= (IN WHATTOINSTALL 3) 8)
- (tutorials)
- )
-
- (makeassign "pgs_temp")
-
- (if (> NEWCODE 0)
- (
-
- (askdisk
- (prompt "Please insert Photogenics disk 3 in any drive")
- (dest "Photogenics_3")
- (help @askdisk-help)
- )
-
- (message
- "\n"
- "Following this last confirmation is a list of changes,"
- " updates and enhancements to Photogenics which didn't"
- " make it into the manual - there is important information"
- " in the text, so please be sure to read it. Then go ahead"
- " and start Photogenics by double-clicking on its icon -"
- " this can be found in the drawer in which you installed"
- " the package.\n\n"
- ( "( %s )" BINARIES )
- "\n\n Spray on, gang."
- )
-
- (run "run Photogenics_3:c/More Photogenics_3:READ.ME")
-
- (exit (quiet))
- )
- )
-
- (if (= (IN WHATTOINSTALL 2) 4)
- (set FINALREPLY (cat FINALREPLY "\n\n\nColourfonts installed."))
- )
-
- (if (= (IN WHATTOINSTALL 3) 8)
- (set FINALREPLY (cat FINALREPLY "\n\n\nTutorial and example graphics installed."))
- )
-
- (message FINALREPLY )
- (exit (quiet))
-